package com.example.myDesignPatterns.行为型模式.策略模式Strategy;

//定义具体策略角色（Concrete Strategy）：每个节日具体的促销活动
//为春节准备的促销活动A
public class StrategyA implements Strategy {
    public void show() {
        System.out.println("买一送一");
    }
}

//为中秋准备的促销活动B
class StrategyB implements Strategy {
    public void show() {
        System.out.println("满200元减50元");
    }
}
//为圣诞准备的促销活动C
class StrategyC implements Strategy {
    public void show() {
        System.out.println("满1000元加一元换购任意200元以下商品");
    }
}